import request from '@/utils/request'

// 查询考勤异常列表
export function listAttAb(query) {
  return request({
    url: '/hr/attAb/list',
    method: 'get',
    params: query
  })
}

// 查询考勤异常详细
export function getAttAb(id) {
  return request({
    url: '/hr/attAb/' + id,
    method: 'get'
  })
}
// 查询考勤异常详细
export function approvalAttAb(form) {
  return request({
    url: '/hr/attAb/approvalAttAb',
    method: 'get',
    params:form
  })
}

// 新增考勤异常
export function addAttAb(data) {
  return request({
    url: '/hr/attAb',
    method: 'post',
    data: data
  })
}

// 修改考勤异常
export function updateAttAb(data) {
  return request({
    url: '/hr/attAb',
    method: 'put',
    data: data
  })
}

// 删除考勤异常
export function delAttAb(id) {
  return request({
    url: '/hr/attAb/' + id,
    method: 'delete'
  })
}
